﻿using MiniErp.Entity.DataStreams.BOs;
using MiniErp.Entity.DataStreams.DOs;
using MiniErp.Entity.DataStreams.DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Service.MysqlService.IService
{
    /// <summary>
    /// mini erp 登录注册服务层
    /// </summary>
    public interface ILoginService
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="id">工号</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        public Task<UserDTO> Login(LoginDTO logins);

        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="user">用户注册信息</param>
        /// <returns></returns>
        public Task<bool> Register(RegisterDTO registers);
    }
}
